﻿// Study0901.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
// 第九章 群体数据 函数模板

#include <iostream>
using namespace std;
template<class  T>
void outputArray(const T* array,int count)
{
	for (int i = 0; i < count; ++i)
	{
		cout << array[i] << " ";
	}
	cout << endl;
}
int main()
{
	constexpr int A_count = 8, B_count = 8, C_count = 20;
	int a[A_count] = { 1,2,3,4,5,6,7,8 };
	double b[B_count] = { 1.1,2.2,3.3,4.4,5.5,6.6,7.7,8.8 };
	char c[C_count] = "Welcome to see you!";
	cout << "数组a中包含：" << endl;
	outputArray(a, A_count);
	cout << "数组b中包含：" << endl;
	outputArray(b, B_count);
	cout << "数组a中包含：" << endl;
	outputArray(c, C_count);
	return 0;
}
